package com.xu.cloud.sample.service.controller;

import com.xu.cloud.sample.api.dto.DesensitizationResp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xuguan
 * @since 2025/3/7
 */
@RestController
@RequestMapping("/api")
public class DesensitizationApiImpl {
    @GetMapping("/desensitization")
    public DesensitizationResp desensitization() {
        final DesensitizationResp dto = new DesensitizationResp();
        dto.setChineseName("段云飞");
        dto.setEnglishName("Duan Yunfei");
        dto.setMobileNo("15812341234");
        dto.setEmail("123456789@qq.com");
        dto.setIdNo("521344199012144546");
        dto.setCardNo("623061001999042107");
        dto.setAddress("浙江省杭州市西湖区西湖小区1幢123号");
        return dto;
    }
}
